﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Top.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.UIFramework.Top" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/skin.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
        function logout() {
            window.top.window.location = "Logout.aspx";
        }
        function changeMenu(id, url) {
            window.top.frames["leftFrame"].location.href = "Left.aspx?ID=" + id;
            window.top.frames["main"].location.href = url;
        }
        function editPassword() {
            var obj = new Object();
            obj.name = "修改密码";
            var retValue = window.showModalDialog('<%=Honestysoft.Baseframework.WebUI.Globals.Home %>Scripts/ShowDlg.aspx?url=<%=Honestysoft.Baseframework.WebUI.Globals.Home %>UIFramework/EditPassword.aspx', obj, 'scroll:0;status:0;help:1;resizable:0;dialogWidth:300px;dialogHeight:200px');
            if (typeof (retValue) != "undefined" && retValue != null && retValue) {
                window.location.href = window.location.href;
            }
        }
        function toHome() {
            var url ='<%=Honestysoft.Baseframework.WebUI.Globals.Home %>'+ '<%= System.Configuration.ConfigurationManager.AppSettings["HomePage"] %>' ;
            window.top.frames["main"].location.href = url;
        }
    </script>
    <style type="text/css">
    a.a1
    {
        color:#ffffff;
        text-decoration:none;
        font-weight:700;
        cursor:pointer;
    }
    a.a1:hover
    {
        color:#BABABA;
        text-decoration:none;
        font-weight:700;
    }
    </style>
</head>
<body style="margin:0px;">
    <form id="form1" runat="server">
   <table width="100%" height="64" border="0" cellpadding="0" cellspacing="0" class="admin_topbg">
  <tr>
    <td width="462px" height="64"><img src="../images/logo1.gif" width="462px" height="64px"></td>
    <td valign="top" align="right" >
        <table width="100%" border="0">
            <tr>
                <td style="padding-right:10px;padding-top:8px;text-align:right;">
                    <asp:Repeater runat="server" ID="rptSubSystem">
                        <ItemTemplate>
                            <a href="javascript:changeMenu('<%# DataBinder.Eval(Container.DataItem, "ID")%>','<%=Honestysoft.Baseframework.WebUI.Globals.Home %><%# DataBinder.Eval(Container.DataItem, "URI")+"" == "" ? "UIFramework/blank.aspx" : DataBinder.Eval(Container.DataItem, "URI")+""%>');" class='a1' />[<%# DataBinder.Eval(Container.DataItem, "FuncName")%>]</a>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
                <td style="padding-right:10px;padding-top:8px;width:400px;"><span style="font-size:9pt;font-family:宋体;color:White">用户：<%=Honestysoft.Baseframework.WebUI.UserLoginer.LoginUser.Name %>，您好！</span>&nbsp;&nbsp;<a href="#" onclick="toHome();" class="a1">[系统首页]</a>&nbsp;&nbsp;<a href="#" onclick="editPassword();" class="a1">[修改密码]</a>&nbsp;&nbsp;<a href="#" onclick="logout();" class="a1">[安全退出]</a>&nbsp;&nbsp;<a href="../help.pdf" target="_blank" class="a1">[帮助]</a>
                 </td>
            </tr>
        </table>
        
        </td>
  </tr>
</table>
    </form>
</body>
</html>
